// // post请求，获取菜单
// export const postMenu = (data, config = {}) => uni.$uv.http.post('/ebapi/public_api/index', data, config);
// // get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
// export const getMenu = (params) => uni.$uv.http.get('/ebapi/public_api/index',{ custom: {baseUrl: baseUrlObj.baseUrl},params})
import {uploadFile} from "@/utils/request";
export const getSwiperApi = (params= {}) => {
	//console.log(uni.$uv.http,'---------uni.$uv.http---')
	return uni.$uv.http.get('/api/scroll/list',{params})
};
export const getTokenApi = (data, config = {}) => uni.$uv.http.post('/api/login', data, config);
export const registApi = (data, config = {}) => uni.$uv.http.post('/api/register', data, config);
export const getPicCardsApi = (params= {}) => {
	return uni.$uv.http.get('/api/menu/detail',{params})
};//获取图片菜单
export const getHtmlStrApi = (params= {}) => {
	return uni.$uv.http.get('/api/data/detail',{params})
};//获取富文本内容
export const getSeachResultApi = (params= {}) => {
	return uni.$uv.http.get('/api/search',{params})
};//搜索
export const updateNameApi = (data, config = {}) => uni.$uv.http.post('/api/updateName', data, config);
export const registMemberApi = (data, config = {}) => uni.$uv.http.post('/api/member/apply', data, config);
export const updateAvatarApi = (filePath) =>uploadFile({api:'/api/updateAvatar',filePath});
